package com.icangya.DAO;

import com.icangya.domain.ExpendRecord;

import java.util.List;

public interface IExpendRecordDAO extends  IBaseDAO<ExpendRecord>{


    /**
     * 获取用户的支出记录
     * @param openId
     * @return
     */
    List getExpendRecordByOpenId(String openId);


    /**
     * 获取用户的支出记录 根据页码查询
     * @param openId
     * @return
     */
    List getExpendRecordByOpenId(String openId,int startPage);
    /**
     * 获取用户发布广告的支出记录
     * @param openId
     * @param expendType
     * @return
     */
    List getExpendByOpenIdOrType(String openId,String expendType);


    /**
     * 获取用户支出总金额
     * @param openId
     * @return
     */
    Double getExpendMoneyByOpenId(String openId);

}
